#include <bits/stdc++.h>
using namespace std;
int a[100001];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,l=1,ans;
    cin>>n;
    for(int i=1;i<=n;i++) cin>>a[i];
    sort(a+1,a+1+n),ans=n;
    for(int i=2;i<=n;i++) if(a[i]>a[l]) ans--,l++;
    cout<<ans;
    return 0;
}
